<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/10/31 0031
 * Time: 10:35
 */

namespace app\common\validate;

use think\Validate;

class Nav extends Validate
{
    protected $rule = [
        'path' => 'require|unique:nav|max:255',
    ];

    protected $message = [
        'path.require' => '路径必须填写',
        'path.max'     => '路径最多不能超过255个字符',
        'path.unique'  => '路径已存在',
    ];
}
